/* /pages/exam/exam-category/exam-category.wxss */
@primary-color: #1890FF; // 与首页统一的主色
@secondary-color: #2c3e50;
@background-gradient-start: #1a2a6c;
@background-gradient-end: #2a5298;
@card-bg: #ffffff;
@text-color: #333;
@light-text: #666;

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: linear-gradient(135deg, @background-gradient-start 0%, @background-gradient-end 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.container::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.container::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -30px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, transparent 30%, rgba(82, 196, 26, 0.1) 100%);
  z-index: 0;
}

/* 头部样式 */
.header {
  display: flex;
  align-items: center;
  padding: 25px 15px 20px;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;

  .title {
    font-weight: 600;
    color: #ffffff;
    font-size: 22px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    position: relative;
  }

  .title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
  }
}

/* 树形容器 */
.tree-container {
  flex: 1;
  padding: 0;
  box-sizing: border-box;
  margin-top: 15px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

/* 二级节点容器 */
.level2 {
  // 为每个二级节点添加下边框作为分隔线
  border-bottom: 1px solid #f0f0f0;
}

.level2:last-child {
  // 最后一个节点移除边框
  border-bottom: none;
}

/* 节点通用样式 */
.node {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: @card-bg;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 144, 255, 0.03);
  opacity: 0;
  transition: opacity 0.3s;
}

.node:active {
  background-color: #f0f5ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 108, 247, 0.15);
}

.node:active::before {
  opacity: 1;
}

.node-content {
  display: flex;
  align-items: center;
}

/* 叶子节点图标 */
.leaf-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, @primary-color 0%, #0050b3 100%);
  margin-right: 12px;
  position: relative;
  box-shadow: 0 3px 8px rgba(24, 144, 255, 0.4);
}

.leaf-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background: white;
  border-radius: 50%;
}

/* 右侧指示器 */
.right-indicator {
  display: flex;
  align-items: center;
}

.enter-icon {
  width: 12px;
  height: 12px;
  border-top: 2px solid @primary-color;
  border-right: 2px solid @primary-color;
  transform: rotate(45deg);
  margin-left: 5px;
}

/* 文字样式 */
.node-text {
  font-size: 15px;
  color: @secondary-color;
  font-weight: 500;
}